using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Bifrost;

namespace TextEditor
{
    public partial class InsertTable : DevComponents.DotNetBar.Office2007Form
    {        

        public InsertTable()
        {
            InitializeComponent();
            //App.ButtonStytle(this);
        }

        private void InsertTable_Activated(object sender, EventArgs e)
        {
            this.numColCount.Focus();
        }

        private void numColCount_Enter(object sender, EventArgs e)
        {
            this.numColCount.Select(0, this.numColCount.Text.Length);
        }

        private void numRowCount_Enter(object sender, EventArgs e)
        {
            this.numRowCount.Select(0, this.numRowCount.Text.Length);
        }

        public int GetColCount()
        {
            return (int)this.numColCount.Value;
        }

        public int GetRowCount()
        {
            return (int)this.numRowCount.Value;
        }
    }
}